Skip to content

Feat: Add Safe Data Preview#36

Open
kw-datamasque wants to merge 3 commits into
mainfrom
typed-safe-data-preview
Open

Feat: Add Safe Data Preview#36
kw-datamasque wants to merge 3 commits into
mainfrom
typed-safe-data-preview

Conversation

@kw-datamasque

Copy link
Copy Markdown

Adds SafeDataPreviewOptions on InDataDiscoveryConfig and a typed safe_data_preview field on schema-discovery result columns. Changelog entry under 1.1.8 (unreleased).

@ClassicMMT
ClassicMMT force-pushed the typed-safe-data-preview branch 3 times, most recently from 69ef38f to 9111d65 Compare July 16, 2026 02:27
@ClassicMMT ClassicMMT changed the title feat(discovery): Add typed Safe Data Preview options and result field feat: Add safe data preview results Jul 16, 2026
@ClassicMMT
ClassicMMT marked this pull request as ready for review July 16, 2026 02:33

@cph-datamasque cph-datamasque left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a think about whether the UnknownPreview is a safe idea from the point of view of a person using this library.

Remove tests that are just testing pydantic, and collapse repetitive tests using pytest.mark.parametrize().

Comment thread datamasque/client/models/safe_data_preview.py Outdated
Comment thread tests/test_discovery.py Outdated
Comment thread tests/test_discovery.py Outdated
Comment thread tests/test_safe_data_preview.py Outdated
Comment thread tests/test_safe_data_preview.py Outdated
Comment thread tests/test_safe_data_preview.py Outdated
Comment thread tests/test_safe_data_preview.py Outdated
Comment thread tests/test_safe_data_preview.py Outdated
Comment thread tests/test_safe_data_preview.py Outdated
Comment thread HISTORY.rst Outdated
Comment thread tests/test_safe_data_preview.py Outdated
Comment thread datamasque/client/models/safe_data_preview.py Outdated
Comment thread datamasque/client/models/safe_data_preview.py Outdated
Comment thread datamasque/client/models/safe_data_preview.py Outdated
@ClassicMMT
ClassicMMT force-pushed the typed-safe-data-preview branch 2 times, most recently from 62e576e to 5bcf818 Compare July 19, 2026 22:44
@ClassicMMT ClassicMMT changed the title feat: Add safe data preview results Feat: Add Safe Data Preview Jul 19, 2026
Comment thread datamasque/client/models/safe_data_preview.py Outdated
@ClassicMMT
ClassicMMT force-pushed the typed-safe-data-preview branch 2 times, most recently from 799f58f to 10f2e69 Compare July 20, 2026 03:16
@ClassicMMT
ClassicMMT force-pushed the typed-safe-data-preview branch from 10f2e69 to f01e0b2 Compare July 20, 2026 20:07

@kanewilliams kanewilliams left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on my end, conditional on @cph-datamasque's review



class TemporalBin(BaseModel):
"""One interval of a temporal histogram, with ISO-formatted bounds and a human-readable label."""

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should these bounds be datetime then? (may require DM changes)

@cph-datamasque

Copy link
Copy Markdown
Collaborator

approved, I'll trust that the data structures are correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants